package com.qujia.station.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qujia.station.domain.FinanceStatementStation;
import com.qujia.station.domain.PayWay;
import com.qujia.station.domain.vo.FinanceStatement;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

public interface FinanceStatementStationMapper extends BaseMapper<FinanceStatementStation> {

    FinanceStatement countOilDataByDay(@Param("stationId") long stationId,
                                  @Param("beginTime") LocalDateTime beginTime,
                                  @Param("endTime") LocalDateTime endTime);

    FinanceStatement countCardDataByDay(@Param("stationId") long stationId,
                                  @Param("beginTime") LocalDateTime beginTime,
                                  @Param("endTime") LocalDateTime endTime);

    PayWay selectStationPayWay(long stationId);

}
